#include "GuiMain.hpp"

GuiMain::GuiMain(SDL_Rect windowSize)
{
    this->windowSize = windowSize;
}

GuiMain::~GuiMain()
{
}

void GuiMain::Initialize(SDL_Renderer *renderer)
{
    this->renderer = renderer;
}

void GuiMain::Render()
{
    this->SetColor(255, 255, 255, 255);
    SDL_RenderClear(this->renderer);

    this->SetColor(255, 0, 0, 255);
    this->DrawRect(0, 0, 80, 80);

    SDL_RenderPresent(this->renderer);
}

void GuiMain::Destroy()
{
}

void GuiMain::DrawRect(int x, int y, int w, int h)
{
    SDL_Rect rect;
    rect.x = x;
    rect.y = y;
    rect.w = w;
    rect.h = h;

    SDL_RenderFillRect(this->renderer, &rect);
}

void GuiMain::SetColor(Uint8 r, Uint8 g, Uint8 b, Uint8 a)
{
    SDL_SetRenderDrawColor(this->renderer, r, g, b, a);
}
